{\rtf1\ansi\ansicpg936\cocoartf1265
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset134 STHeitiSC-Light;}
{\colortbl;\red255\green255\blue255;\red110\green32\blue13;\red186\green0\blue17;\red29\green133\blue25;
\red180\green0\blue98;\red0\green11\blue255;\red46\green13\blue110;\red68\green137\blue147;\red32\green60\blue63;
}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab1348
\pard\tx1348\pardeftab1348\pardirnatural

\f0\fs56 \cf2 \CocoaLigature0 #include \cf3 "stdio.h"\cf2 \
#include \cf3 "stdlib.h"\cf2 \
\cf4 //
\f1 \'d4\'ad\'ca\'bc\'c3\'dc\'c2\'eb
\f0 \cf0 \
\cf5 int\cf0  sysPassword=\cf6 123456\cf0 ;\
\cf5 int\cf0  sysmoney=\cf6 5000\cf0 ;\
\cf4 //
\f1 \'ba\'af\'ca\'fd\'c9\'f9\'c3\'f7\'c7\'f8
\f0 \cf0 \
\cf5 void\cf0  window();\
\cf5 void\cf0  operFunc(\cf5 int\cf0  op);\
\cf5 void\cf0  getMoney();\
\cf5 void\cf0  back();\
\cf4 //1.
\f1 \'d1\'e9\'d6\'a4\'c3\'dc\'c2\'eb\'a3\'ac\'bb\'b6\'d3\'ad\'bd\'e7\'c3\'e6
\f0 \cf0 \
\cf5 void\cf0  checkPassword()\
\{\
    \
    \cf4 //
\f1 \'b6\'a8\'d2\'e5\'ca\'e4\'c8\'eb\'b5\'c4\'c3\'dc\'c2\'eb\'b1\'e4\'c1\'bf\'c3\'fb
\f0 \cf0 \
    \cf5 int\cf0  inPassword,times=\cf6 0\cf0 ;\
    \cf7 printf\cf0 (\cf3 "
\f1 \'a3\'ad\'a3\'ad\'a3\'ad\'bb\'b6\'d3\'ad\'ca\'b9\'d3\'c3
\f0 ATM
\f1 \'d7\'d4\'b6\'af\'c8\'a1\'bf\'ee\'bb\'fa\'a3\'ad\'a3\'ad\'a3\'ad
\f0 \\n"\cf0 );\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'d2\'f8\'d0\'d0\'bf\'a8\'c3\'dc\'c2\'eb\'a3\'ba
\f0 "\cf0 );\
    \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&inPassword);\
    \cf5 while\cf0 (inPassword<\cf6 100000\cf0 ||inPassword>\cf6 999999\cf0 )\
    \{\
        \cf7 printf\cf0 (\cf3 "error,
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'c1\'f9\'ce\'bb\'ca\'fd\'b5\'c4\'c3\'dc\'c2\'eb
\f0 \\n"\cf0 );\
        \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'d2\'f8\'d0\'d0\'bf\'a8\'c3\'dc\'c2\'eb\'a3\'ba
\f0 "\cf0 );\
        \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&inPassword);\
    \}\
    \cf5 while\cf0 (inPassword!=\cf8 sysPassword\cf0 )\
    \{\cf4 //
\f1 \'c5\'d0\'b6\'cf\'ca\'c7\'b2\'bb\'ca\'c7\'c8\'fd\'b4\'ce\'b4\'ed\'ce\'f3\'a3\'ac\'c8\'e7\'b9\'fb\'ca\'c7\'d6\'b1\'bd\'d3\'cd\'cb\'b3\'f6\'b3\'cc\'d0\'f2
\f0 \cf0 \
        times++;\
        \cf4 //
\f1 \'cc\'e1\'ca\'be\'c3\'dc\'c2\'eb\'b4\'ed\'ce\'f3\'a3\'ac\'b8\'f8\'bb\'fa\'bb\'e1\'d6\'d8\'d0\'c2\'ca\'e4\'c8\'eb
\f0 \cf0 \
        \cf7 printf\cf0 (\cf3 "
\f1 \'c3\'dc\'c2\'eb\'b5\'da
\f0 %d
\f1 \'b4\'ed\'ce\'f3\'a3\'ac\'c4\'e3\'bb\'b9\'d3\'d0
\f0 %d
\f1 \'b4\'ce\'bb\'fa\'bb\'e1\'a1\'a3
\f0 \\n"\cf0 ,times,\cf6 3\cf0 -times);\
        \cf5 if\cf0 (times==\cf6 3\cf0 )\
        \{\
            \cf7 printf\cf0 (\cf3 "
\f1 \'c3\'dc\'c2\'eb\'b4\'ed\'ce\'f3
\f0 3
\f1 \'b4\'ce\'a3\'ac\'d2\'f8\'d0\'d0\'bf\'a8\'d2\'d1\'b6\'b3\'bd\'e1\'a3\'a1
\f0 \\n"\cf0 );\
            \cf7 exit\cf0 (\cf6 0\cf0 );\
        \}\
        \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'d2\'f8\'d0\'d0\'bf\'a8\'c3\'dc\'c2\'eb\'a3\'ba
\f0 "\cf0 );\
        \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&inPassword);\
    \}\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c3\'dc\'c2\'eb\'d5\'fd\'c8\'b7\'a3\'a1
\f0 \\n"\cf0 );\
    \cf9 window\cf0 ();\
\}\
\
\cf4 //
\f1 \'d6\'f7\'bd\'e7\'c3\'e6\'ba\'af\'ca\'fd
\f0 \cf0 \
\cf5 void\cf0  window()\
\{\
    \cf5 int\cf0  oper=\cf6 0\cf0 ;\
    \cf7 printf\cf0 (\cf3 "
\f1 \'bb\'b6\'d3\'ad\'bd\'f8\'c8\'eb
\f0 ATM
\f1 \'d7\'d4\'b6\'af\'c8\'a1\'bf\'ee\'bb\'fa
\f0 "\cf0 );\
    \cf7 printf\cf0 (\cf3 "
\f1 \'a3\'ad\'a3\'ad\'a3\'ad\'a3\'ad\'a3\'ad\'a3\'ad\'a3\'ad\'a3\'ad
\f0 \\n"\cf0 );\
    \cf7 printf\cf0 (\cf3 "1-
\f1 \'c8\'a1\'bf\'ee
\f0    2-
\f1 \'b4\'e6\'bf\'ee
\f0 \\n"\cf0 );\
    \cf7 printf\cf0 (\cf3 "3-
\f1 \'d7\'aa\'d5\'cb
\f0    4-
\f1 \'b8\'c4\'c3\'dc
\f0 \\n"\cf0 );\
    \cf7 printf\cf0 (\cf3 "5-
\f1 \'b2\'e9\'d1\'af
\f0    6-
\f1 \'cd\'cb\'bf\'a8
\f0 \\n"\cf0 );\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'b2\'d9\'d7\'f7\'d6\'b8\'c1\'ee\'a3\'a8
\f0 1-6
\f1 \'a3\'a9\'a3\'ba
\f0 "\cf0 );\
    \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&oper);\
    \cf4 //
\f1 \'c5\'d0\'b6\'cf\'d6\'b8\'c1\'ee\'ca\'e4\'c8\'eb\'ca\'c7\'b7\'f1\'d3\'d0\'ce\'f3
\f0 \cf0 \
    \cf5 while\cf0 (oper<\cf6 1\cf0 ||oper>\cf6 6\cf0 )\
    \{\
        \cf7 printf\cf0 (\cf3 "
\f1 \'ca\'e4\'c8\'eb\'d6\'b8\'c1\'ee\'b4\'ed\'ce\'f3\'a3\'a1
\f0 "\cf0 );\
        \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'d6\'d8\'d0\'c2\'ca\'e4\'c8\'eb\'b2\'d9\'d7\'f7\'d6\'b8\'c1\'ee\'a3\'a8
\f0 1-6
\f1 \'a3\'a9\'a3\'ba
\f0 "\cf0 );\
        \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&oper);\
    \}\
    \cf9 operFunc\cf0 (oper);\
\}\
\
\cf4 //
\f1 \'d6\'b8\'c1\'ee\'b4\'a6\'c0\'ed\'ba\'af\'ca\'fd
\f0 \cf0 \
\cf5 void\cf0  operFunc(\cf5 int\cf0  op)\
\{\
    \cf5 switch\cf0 (op)\
    \{\
        \cf5 case\cf0  \cf6 1\cf0 :\cf4 //
\f1 \'c8\'a1\'bf\'ee\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'c8\'a1\'bf\'ee\'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 \\n"\cf0 );\
            \cf9 getMoney\cf0 ();\
            \cf5 break\cf0 ;\
        \cf5 case\cf0  \cf6 2\cf0 :\cf4 //
\f1 \'b4\'e6\'bf\'ee\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'b4\'e6\'bf\'ee\'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 "\cf0 );\
            \cf5 break\cf0 ;\
        \cf5 case\cf0  \cf6 3\cf0 :\cf4 //
\f1 \'d7\'aa\'d5\'cb\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'d7\'aa\'d5\'cb\'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 "\cf0 );\
            \cf5 break\cf0 ;\
        \cf5 case\cf0  \cf6 4\cf0 :\cf4 //
\f1 \'b8\'c4\'c3\'dc\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'b8\'c4\'c3\'dc\'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 "\cf0 );\
            \cf5 break\cf0 ;\
        \cf5 case\cf0  \cf6 5\cf0 :\cf4 //
\f1 \'b2\'e9\'d1\'af\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'b2\'e9\'d1\'af\'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 "\cf0 );\
            \cf5 break\cf0 ;\
        \cf5 case\cf0  \cf6 6\cf0 :\cf4 //
\f1 \'cd\'cb\'bf\'a8\'b9\'a6\'c4\'dc
\f0 \cf0 \
            \cf7 printf\cf0 (\cf3 "
\f1 \'bd\'f8\'d0\'d0\'d6\'d0\'a1\'a3\'a1\'a3\'a1\'a3
\f0 "\cf0 );\
            \cf5 break\cf0 ;\
    \}\
\}\
\
\cf4 //
\f1 \'b7\'b5\'bb\'d8\'ba\'af\'ca\'fd
\f0 \cf0 \
\cf5 void\cf0  back()\
\{\
    \cf5 int\cf0  i;\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'d1\'a1\'d4\'f1\'b2\'d9\'d7\'f7\'d6\'b8\'c1\'ee\'a3\'a8
\f0 1-2
\f1 \'a3\'a9\'a3\'ba
\f0 "\cf0 );\
    \cf7 printf\cf0 (\cf3 "1-
\f1 \'b7\'b5\'bb\'d8\'d6\'f7\'bd\'e7\'c3\'e6
\f0   2-
\f1 \'cd\'cb\'bf\'a8
\f0 "\cf0 );\
    \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&i);\
    \cf5 while\cf0 (i!=\cf6 1\cf0 ||i!=\cf6 2\cf0 )\
    \{\
        \cf7 printf\cf0 (\cf3 "
\f1 \'d6\'b8\'c1\'ee\'ca\'e4\'c8\'eb\'d3\'d0\'ce\'f3\'a3\'a1
\f0 \\n"\cf0 );\
        \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'d6\'d8\'d0\'c2\'d1\'a1\'d4\'f1\'b2\'d9\'d7\'f7\'d6\'b8\'c1\'ee\'a3\'a8
\f0 1-2
\f1 \'a3\'a9\'a3\'ba
\f0 "\cf0 );\
        \cf7 printf\cf0 (\cf3 "1-
\f1 \'b7\'b5\'bb\'d8\'d6\'f7\'bd\'e7\'c3\'e6
\f0   2-
\f1 \'cd\'cb\'bf\'a8
\f0 "\cf0 );\
        \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&i);\
    \}\
\}\
\
\cf4 //
\f1 \'c8\'a1\'bf\'ee\'ba\'af\'ca\'fd
\f0 \cf0 \
\cf5 void\cf0  getMoney()\
\{\
    \cf5 int\cf0  money;\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'d1\'a1\'d4\'f1\'c8\'a1\'bf\'ee\'bd\'f0\'b6\'ee\'a3\'ba
\f0 \\n"\cf0 );\
    \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&money);\
    \cf5 while\cf0 (money>\cf8 sysmoney\cf0 )\
    \{\
        \cf7 printf\cf0 (\cf3 "
\f1 \'d3\'e0\'b6\'ee\'b2\'bb\'d7\'e3\'a3\'a1
\f0 \\n"\cf0 );\
        \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'d6\'d8\'d0\'c2\'d1\'a1\'d4\'f1\'c8\'a1\'bf\'ee\'bd\'f0\'b6\'ee\'a3\'ba
\f0 \\n"\cf0 );\
        \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&money);\
    \}\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c8\'a1\'bf\'ee\'b3\'c9\'b9\'a6\'a3\'a1
\f0 \\n"\cf0 );\
    \cf8 sysmoney\cf0 =\cf8 sysmoney\cf0 -money;\
    \cf4 //back();\cf0 \
    \cf4 //window();\cf0 \
    \
        \
\}\
\
\cf4 //
\f1 \'b4\'e6\'bf\'ee\'ba\'af\'ca\'fd
\f0 \cf0 \
\cf5 void\cf0  putMoney()\
\{\
    \cf5 int\cf0  putmoney;\
    \cf7 printf\cf0 (\cf3 "
\f1 \'c7\'eb\'ca\'e4\'c8\'eb\'b4\'e6\'bf\'ee\'bd\'f0\'b6\'ee\'a3\'ba
\f0 "\cf0 );\
    \cf7 scanf\cf0 (\cf3 "%d"\cf0 ,&putmoney);\
\}\
\cf5 int\cf0  main()\
\{\
    checkPassword();\
    \
    \
\}}